#pragma once
#include "..\dxstdafx.h"
#include "GraphicsDevice.h"
#include "..\content\ResManager.h"

namespace ds {

class RenderTarget {

public:
	RenderTarget(void);
	~RenderTarget(void);
	ResourceHandle create(GraphicsDevice* device,int index);
	void restoreBackBuffer();
	void saveBackBuffer();
	void setTargets();
	LPDIRECT3DTEXTURE9 getTexture() { return m_RenderTexture; }
private:
	LPDIRECT3DSURFACE9 m_BackBuffer;
	LPDIRECT3DTEXTURE9 m_RenderTexture;
	LPDIRECT3DSURFACE9 m_RenderSurface;
};

};

